import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter)

import Home from '../pages/Home.vue'
import Search from '../pages/Search.vue'
import Login from '../pages/Login.vue'
import Register from '../pages/Register.vue'


export default new VueRouter({
  mode: 'hash',
  routes: [
    {
      name: 'home',
      path: '/home',
      component: Home,
      meta: {
        isShow: true
      }
    },
    {
      name: 'search',
      path: '/search',
      component: Search,
      meta: {
        isShow: true
      }
    },
    {
      name: 'login',
      path: '/login',
      component: Login,
      meta: {
        isShow: false
      }
    },
    {
      name: 'register',
      path: '/register',
      component: Register,
      meta: {
        isShow: false
      }
    },
  ]
})